package linuxbox.download.logic;

import java.sql.Timestamp;

public class DownLoadObject {
	protected int m_iID = -1;         
	protected String m_sName = null;
	protected int m_iCatID = -1;
	protected String m_sCatName = null;
	protected String m_sFileName = null;
	protected String m_sDesc = null;
	protected int m_iFileSize = -1;
	protected Timestamp m_tsUploadDate = null;

	public DownLoadObject() {
	
	}

	public DownLoadObject(String name, int CatID, String FileName, 
	int FileSize, Timestamp UploadDate) {
		m_sName = name;
		m_iCatID = CatID;
		m_sFileName = FileName;
		m_iFileSize = FileSize;
		m_tsUploadDate = UploadDate;
	}
	
	public void copyFrom(DownLoadObject entry) {
		m_iID = entry.getID();
		m_sName = entry.getName();
		m_iCatID = entry.getCatID();
		m_sCatName = entry.getCatName();
		m_sFileName = entry.getFileName();
		m_sDesc = entry.getDesc();
		m_iFileSize = entry.getFileSize();
		m_tsUploadDate = entry.getUploadDate();
	}

	public int getID() {
		return m_iID;
	}

	public void setID(int id) {
		m_iID = id;
	}

	public String getName() {
		return m_sName;
	}
	
	public void setName(String str) {
		m_sName = str;
	}
  
	public int getCatID() {
		return m_iCatID;
	}
	
	public void setCatID(int id) {
		m_iCatID = id;
	}
  
	public String getCatName() {
		return m_sCatName;
	}
	
	public void setCatName(String str) {
		m_sCatName = str;
	}

	public String getFileName() {
		return m_sFileName;
	}
	
	public void setFileName(String str) {
		m_sFileName = str;
	}

	public String getDesc() {
		return m_sDesc;
	}
	
	public void setDesc(String str) {
		m_sDesc = str;
	}
	
	public int getFileSize() {
		return m_iFileSize;
	}
	
	public void setFileSize(int size) {
		m_iFileSize = size;
	}
	
	public Timestamp getUploadDate() {
		return m_tsUploadDate;
	}
	
	public void setUploadDate(Timestamp ts) {
		m_tsUploadDate = ts;
	}
}
